﻿<Window
  x:Name="This"
  x:Class="SqlMiM.MainWindow"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:a="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
  xmlns:c="clr-namespace:SqlMiM.Controls"
  xmlns:conv="clr-namespace:SqlMiM.Common.Converters;assembly=SqlMiM.Common"
  xmlns:v="clr-namespace:SqlMiM.Views"
  xmlns:k="clr-namespace:SqlMiM"
  Loaded="This_Loaded"
  Unloaded="This_Unloaded"
  FontSize="7.75pt"
  Foreground="{DynamicResource Foreground}"
  FontFamily="Verdana"
  AllowDrop="True" Height="800" Width="900" Icon="/SqlMiM;component/Images/database_lightning.png" Title="SQL - MiM">

    

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/SqlMiM.Common;component/Resources/Brushes.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <c:AddConverter x:Key="AddConverter" />
        </ResourceDictionary>
    </Window.Resources>

    <Grid Background="{DynamicResource Background}">

        <Grid.ColumnDefinitions>
            <ColumnDefinition x:Name="PluginsColumn" Width="250" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Grid Margin="0,5,0,5">

            <Border 
                BorderBrush="#484848" 
                BorderThickness="0,0,1,0" CornerRadius="4,4,4,4" 
                Background="{DynamicResource GradientVeryDarkToDarkness}" Margin="6,0,0,0" />


            <!--
            Bordure Témoin
        -->
            <Border BorderBrush="#777" BorderThickness="0,1,0,0" CornerRadius="4,4,0,0" VerticalAlignment="Top" 
                    Height="25" Margin="6,0,0,0" Background="{DynamicResource GradientVeryDarkToDarkness}">
            </Border>

            <Border BorderBrush="#777" BorderThickness="0,1,0,0" CornerRadius="0,4,4,0" Margin="6,0,0,0" />
            <Border BorderBrush="#404040" BorderThickness="0,0,0,1" CornerRadius="4,4,4,4" Margin="6,0,0,0" />
            

        </Grid>

        <!-- 
    *******************************************************************
    Main Menu
    ********************************************************************
    -->
        <v:MenuView Grid.Column="0" VerticalAlignment="Top" Height="24" Margin="6,6,1,0" />

        <!-- 
    *******************************************************************
    SummaryView
    ********************************************************************
    -->

        <v:SummaryView x:Name="PluginView" Grid.Column="0" Margin="6,29,0,38" />

        <!-- 
    *******************************************************************
    StatusBar
    ********************************************************************
    -->

        <v:StatusView  
      x:Name="StatusView"
      Grid.Column="0" VerticalAlignment="Bottom" Margin="8,0,8,4"  Visibility="Collapsed"  />
        <!--Scale="{Binding ElementName=DocumentsView, Path=SelectedView.Scale, Mode=TwoWay}"
      CurrentLineNumber="{Binding ElementName=DocumentsView, Path=SelectedView.TextEditor.LineNumber, Converter={StaticResource AddConverter}, ConverterParameter=1}" 
      CurrentLinePosition="{Binding ElementName=DocumentsView, Path=SelectedView.TextEditor.LinePosition, Converter={StaticResource AddConverter}, ConverterParameter=1}" />-->

        <!-- 
    *******************************************************************
    DocumentsView
    ********************************************************************
    -->
        <GridSplitter HorizontalAlignment="Right" Grid.Column="0" Width="8" Margin="0,10,0,0" Background="Transparent" />


        <v:DocumentsView x:Name="DocumentsView" Grid.Column="1" Margin="5"  />

    </Grid>
</Window>
